package com.wanczy.service;

import java.util.List;

import com.wanczy.pojo.Cart;
import com.wanczy.pojo.EvalUserGoods;
import com.wanczy.pojo.Favorite;
import com.wanczy.pojo.Goods;
import com.wanczy.pojo.Shop;

public interface DetailService {
	//根据商品id查询商品信息
	public Goods findByGoodsId(Integer goodsId);
	//根据商户id查询商户基本信息
	public Shop findByShopId(Integer shopId);
	//查询该商品的评价
	public List<EvalUserGoods> queryEval(Integer goodsId);
	//将商品加入收藏夹
	public int addFavorite(Favorite favorite);
	//判断该商品是否已经加入收藏夹
	public Favorite queryFavorite(Favorite favorite);
	//将商品加入购物车
	public int addCart(Cart cart);
	//判断该商品是否已经加入购物车
	public Cart queryCart(Cart cart);
}
